<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <script th:src="@{/webjars/jquery/3.5.1/jquery.js}"></script>
    <script type="text/javascript">


    </script>
</head>
<body>
<div>

    <h4 th:text="#{login.tip}"></h4>
    <span style="color: red" th:if="${not #strings.isEmpty(err)}">[[${err}]]</span>

    <form action="/user/login" method="post">
        <input type="text" name="username" th:placeholder="#{login.username}"><br>
        <input type="text" name="password" th:placeholder="#{login.password}"><br>
        <input type="radio" onclick="if(this.c==1){this.c=0;this.checked=0}else this.c=1">[[#{login.remember}]]
        <input type="submit" th:value="#{login.btn}">
    </form>

    <span>2020-2021</span>

    <div>
        <a th:href="@{/index.html(l='zh_CN')}">中文</a>
        |
        <a th:href="@{/index.html(l='en_US')}">English</a>
    </div>

</div>
</body>
</html>